import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'

Vue.use(Vuex)
const state = {
  currentpage: null || 1,
  articleindex: null,
  showBackend: false,
  showLogin: true,
  showRegister: false,
  showUpload: true,
  username: null,
  avatar: null,
  permission: null,
  b2: null,
  b3: null,
}

export default new Vuex.Store({
  state,
  mutations,
})
